﻿@model TracNghiem.Areas.Admin.Models.Noi_DungModels
<div class="container_12">
    <div class="grid_12">
        <div class="module">
            <h2 align="right">
                <span><a href="@Url.Action("Index", "NOI_DUNG", new { id = @ViewBag.baihoc_id })">Quay
                    lại</a></span></h2>
            <div class="module-body">
                @using (Html.BeginForm("Editnoidung", "noi_dung", FormMethod.Post, new { id = "noi_dung" }))
                {                      
                    <div align="center">
                        <h3>
                            CHỈNH SỮA NỘI DUNG BÀI VIẾT DỊCH VỤ</h3>
                    </div>
                    if (TempData["msg"] != null)
                    {                            
                        <span class="notification n-success">@TempData["msg"]</span>
                    }
                    if (TempData["error"] != null)
                    {                            
                        <span class="notification n-error">@TempData["error"]</span>
                    } 
                    <p>
                    </p>
                    <table>
                        <p>
                            <label style="padding-left: 5%; padding-right: 5%">
                                Phân loại:</label>
                            <div style="padding-left: 4%;">
                                @if (Model.service_id != null)
                                {                               
                                    @Html.DropDownListFor(x => x.ID_PHANLOAI, Model.service_id, new { style = "margin-left:17px" })  
                                }
                            </div>
                        </p>
                        <p>
                            <label style="padding-left: 5%; padding-right: 5%">
                                Nội dung:</label>
                            <div style="padding-left: 5%; padding-right: 5%">
                                <textarea id="editor1" rows="2" name="NOIDUNG">@Model.NOIDUNG</textarea>
                                <script>
                                    CKEDITOR.replace('editor1',
{
    filebrowserBrowseUrl: '@Url.Content("~/Content/themes/ckfinder/ckfinder.html")',
    filebrowserImageBrowseUrl: '@Url.Content("~/Content/themes/ckfinder/ckfinder.html?type=Images")',
    filebrowserFlashBrowseUrl: '@Url.Content("~/Content/themes/ckfinder/ckfinder.html?type=Flash")',
    filebrowserUploadUrl: '@Url.Content("~/Content/themes/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files")',
    filebrowserImageUploadUrl: '@Url.Content("~/Content/themes//ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images")',
    filebrowserFlashUploadUrl: '@Url.Content("~/Content/themes//ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash")'
});
                                </script>
                            </div>
                        </p>
                    </table>
                    <div class="button" align="center">
                        <p style="width: 25%; text-align: center">
                            <input type="hidden" name="baihoc_id" value="@ViewBag.baihoc_id" />
                            <input class="submit-green" type="submit" value="Cập Nhật" />
                            <input class="submit-gray" type="reset" value="Hủy" />
                        </p>
                    </div>
                }
            </div>
            <!-- End .module-body -->
        </div>
        <!-- End .module -->
        <div style="clear: both;">
        </div>
    </div>
    <!-- End .grid_12 -->
    <div style="clear: both;">
    </div>
</div>
<!-- End .container_12 -->
